An ecosystem is all the living and nonliving things that interact in an area. A habitat is the specific place where an organism lives and gets what it needs to survive. Biotic factors are the living parts of an ecosystem like plants and animals, while abiotic factors are non-living parts like water and sunlight. Species are groups of organisms that can reproduce, populations are all members of a species in an area, and communities are made up of multiple interacting populations. Ecosystems are organized from organisms to populations to communities, with each organism having a niche or role. Diversity depends on the variety of species in an ecosystem.